home *** CD-ROM | disk | FTP | other *** search
/ JCSM Shareware Collection 1995 September / JCSM Shareware Collection (September 30th 1995 Author to Vendor Edition) (JCS Distribution).ISO / homepers / 11420j01.ziv / INSTALL.BAT next >
DOS Batch File  |  1994-03-18  |  2KB  |  73 lines

  1. echo off
  2. cls
  3. if %1x==x goto NODRIVE
  4. %1
  5. instprog %1 %2 1 mainprog PS PROSKED ~0
  6. if errorlevel 99 goto END
  7. cls
  8. if exist upgrd.exe erase upgrd.exe
  9. copy %1*.*
  10. if exist t0.hlp erase t?.hlp
  11. cls
  12. echo just a minute...
  13. if exist manual erase manual.*
  14. if exist jwtype.lbf erase jw*.*
  15. if exist help erase help.*
  16. if exist messages erase messages.*
  17. if exist blankcal erase blank*
  18. if exist alarm.dat erase alarm.dat
  19. if exist mainprog.exe erase mainprog.*
  20. if exist sample.lbt erase sample.lbt
  21. if exist sample1.rpt erase sample1.rpt
  22. if exist printers.lbf erase printers.lbf
  23. if exist pc-beep.exe erase pc-beep.exe
  24. cls
  25. if not exist m-journ.lbf goto EXTRACT
  26. echo                              VERY IMPORTANT
  27. echo .
  28. echo .
  29. echo Now, some program files will be extracted from an archive.  Before each
  30. echo file is extracted, a check will be made to see whether a similarly named
  31. echo one already exists on your hard disk.  If so, you'll be asked whether you
  32. echo wish to overwrite it with a new copy.
  33. echo .
  34. echo              ALWAYS ANSWER "NO" (BY PRESSSING THE "N" KEY).
  35. echo .
  36. echo .
  37. pause
  38. cls
  39. :EXTRACT
  40. pskd
  41. erase pskd.exe
  42. mainprog u %2 ~0
  43. mainprog i ~0
  44. mainprog t all 
  45. if exist jwread.txt mainprog t jwread
  46. rem if exist manual.idx erase m*.txt
  47. rem echo off
  48. cls
  49. if exist 1sttime.fyl erase 1sttime.fyl
  50. if exist m-journ.lbf goto NOTFIRST
  51. mainprog p
  52. mainprog w
  53. mainprog m
  54. :NOTFIRST
  55. rem echo off
  56. cls
  57. echo       To use this scheduler, go to the PS directory on drive %2 and enter
  58. echo "PS xxx"  (where xxx are your initials).   For example,  if your initials
  59. echo were ABC, you would enter "PS ABC" (without quotes).
  60. echo .
  61. echo .
  62. pause
  63. goto END
  64. :NODRIVE
  65. cls
  66. echo .
  67. echo      You must designate BOTH the SOURCE diskette and the HARD disk
  68. echo .
  69. echo example: "B:INSTALL B: C:"  will install program from drive B to drive C:
  70. echo .
  71. echo            PLEASE TRY AGAIN
  72. :END
  73.